﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("您好，这里是xx宠物店，请问你要寄养什么动物呢！1、老虎 2、猫 3、老鹰 4、燕子");
            int key = int.Parse(Console.ReadLine());
            Animal a;
            switch (key)
            {
                case 1:
                    a = new Cat();
                    break;
                case 2:
                    a = new Eagle();
                    break;
                case 3:
                    a = new Swallow();
                    break;
                case 4:
                    a = new Tiger();
                    break;
                default:
                    Console.WriteLine("不能乱选");
                    a = new Swallow();
                    break;
            }
            Petshop ps = new Petshop();
            ps.Check(a);
        }
    }
}
